<!--{Atemplate tpl/header}-->
<script src="{Acan_path_js}/app/file.js"></script>
<div class="Adev">
	<input type="hidden" value="$this->Amodr" id="Aurl_Amodr"/>
	<input type="hidden" value="$this->Aactr" id="Aurl_Aactr"/>
	<input type="hidden" value="$path" id="Adev_path"/>
<form method="post" action="">
<div class="_nav">
	<span class="_path">路径：$dirnav</span>
	<span class="_pathr">
		<input type="text" value="$path" class="_dir" list="path_list"/>
		<datalist id="path_list" title="文件夹浏览历史">
		<!--{loop $history->dir->datas $key $val}-->
			<option label="($val[times])" value="$val[path]" />
		<!--{/loop}-->
		</datalist>
		<input type="submit" value="进入" onClick="return Apps.file.path_go();"/>
		<input type="button" value="新建文件夹" onClick="Apps.file.add('dir');"/>
		<input type="button" value="新建文件" onClick="Apps.file.add('file');"/>
		<input type="button" value="上传文件" onClick="Apps.file.upfile('$path');"/>
	</span>
</div>
<div class="_option">
	<input type="button" onClick="Apps.file.chks('all');" value="全选"/>
	<input type="button" onClick="Apps.file.chks('dir');" value="全选文件夹"/>
	<input type="button" onClick="Apps.file.chks('file');" value="全选文件"/>
	<input type="button" onClick="Apps.file.chks('none');" value="清空选择"/> 
	<input type="button" onClick="Apps.file.zip();" value="压缩"/>
	<input type="button" onClick="Apps.file.unzip();" value="解压"/>
	<input type="button" onclick="Atab.task_new('优化图片','$this->Amodr-imgop?path=$path',0)" value="压缩优化图片">
</div>
<div class="_dir"><!--{Atemplate file/list_dir}--></div>
<div class="_file"><!--{Atemplate file/list_file}--></div>
</form>

<!--{Atemplate file/_history}-->

</div><!-- Adev end -->
<!-- 分页 -->
$pages->html

<!--{Atemplate tpl/footer}-->